package Server.DataBase;

import java.io.Serializable;

/**
 * This Class when created is a course from sql table 
 * The static fuctions gets\sets values from\to sql
 * 
 * @author Ido
 * @author Ziv
 * @author Eyal
 * @author Kobi
 *
 */
public class SchoolClass implements Serializable, ReportIF {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private int idClass;
		
	private String className = null;
	
	private int size;
	/**
	 * SchoolClass constructor	
	 * @param idClass
	 * @param className
	 * @param size
	 */
	public SchoolClass(int idClass, String className, int size) {
		super();
		this.idClass = idClass;
		this.className = className;
		this.size = size;
	}
/**
 * 
 * @return size
 */
	public int getSize() {
		return size;
	}
/**
 * 
 * @param size
 */
	public void setSize(int size) {
		this.size = size;
	}
/**
 * 
 * @return idClass
 */
	public int getIdClass() {
		return idClass;
	}
/**
 * 
 * @return className
 */
	public String getClassName() {
		return className;
	}
/**
 * 
 * @param idClass
 */
	public void setIdClass(int idClass) {
		this.idClass = idClass;
	}
/**
 * 
 * @param className
 */
	public void setClassName(String className) {
		this.className = className;
	}
	/**
	 * 
	 */
	public String toString() {
		return className;
	}
	
	@Override
	public int getId() {
		return idClass;
	}
}
